<template>
	<view class="tt-own">
		<view class="tt-own-box">
			<view class="left" @click="jumpTo">
				<image class="img" style="width: 100rpx;height: 100rpx;vertical-align: middle;" src="https://nudianli.com/topic/worker.png" mode="aspectFill"></image>
				<text class="txt" style="vertical-align: middle;magin: 0 20rpx;">昵称</text>
			</view>
			<view class="right">
				<view class="l">
					<view class="score">1000</view>
					<view class="msg">积分</view>
				</view>
				<view class="r">
					<view class="icon icon-code"></view>
					<view class="msg">会员码</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"tt-own-comp",
		data() {
			return {
				
			};
		},
		methods: {
			jumpTo(){
				uni.redirectTo({
					url:'../../pages/myInfo/myInfo'
				})
			}
		}
	}
</script>

<style lang="scss">
.tt-own {
	width: 100%;
	padding: 10rpx 30rpx;
	box-sizing: border-box;
	.tt-own-box {
		height: 140rpx;
		width: 100%;
		padding: 10rpx 10rpx;
		box-sizing: border-box;
		box-shadow: 0 0 2px #ccc;
		border-radius: 8rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		.left {
			.txt {
				font-size: 28rpx;
				color: #333;
				line-height: 1.75;
				&::after {
					content: "";
					display: inline-block;
					vertical-align: middle;
					width: 0;
					height: 0;
					border: 10rpx solid transparent;
					border-left-color: #f0f0f0;
					margin: 0 10rpx;
				}
			}
		}
		.right {
			.l {
				float: left;
				background-color: #fff;
				padding: 0 10rpx;
				.score {
					height: 50rpx;
					text-align: center;
					line-height: 50rpx;
					font-size: 28rpx;
				}
			}
			.r {
				padding: 0 10rpx;
				background-color: #fff;
				float: left;
				.icon {
					width: 50rpx;
					height: 50rpx;
					background-image: url(@/assets/icon-code.png);
					background-size: cover;
					margin: 0 auto;
				}
				
			}
			.msg {
				font-size: 24rpx;
				text-align: center;
				color: #666;
			}
		}
	}
}
</style>